package cool.lichuan.zabbix.domain.problem;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lichuan
 * @date 2021/12/17 9:30
 * @description
 */
public class ProblemHost implements Serializable {
    /** 问题事件ID */
    private String eventId;
    /** 创建时间 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /** 严重性 0-未定义 1-信息 2-警告 3-一般严重 4-严重 5-灾难 */
    private String severity;
    /** 是否抑制问题。 可能的值: 0 - 问题是一个正常状态; 1 - 问题被抑制 */
    private Integer suppressed;
    /** 主机ID */
    private String hostId;
    /** 主机名称 */
    private String hostName;
    /** 解决问题的名称 */
    private String name;
    /** 持续时间 */
    private String duration;
    /** 问题知晓状态 0-不知道 1-知道 */
    private String acknowledged;
    /** 主机组名称 */
    private String groupNames;
    /** 主机组ID */
    private List<String> groupIds;

    public List<String> getGroupIds() {
        return groupIds;
    }

    public void setGroupIds(List<String> groupIds) {
        this.groupIds = groupIds;
    }

    public String getGroupNames() {
        return groupNames;
    }

    public void setGroupNames(String groupNames) {
        this.groupNames = groupNames;
    }

    public ProblemHost() {
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public Integer getSuppressed() {
        return suppressed;
    }

    public void setSuppressed(Integer suppressed) {
        this.suppressed = suppressed;
    }

    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public String getAcknowledged() {
        return acknowledged;
    }

    public void setAcknowledged(String acknowledged) {
        this.acknowledged = acknowledged;
    }

    @Override
    public String toString() {
        return "ProblemHost{" +
                "eventId='" + eventId + '\'' +
                ", createTime=" + createTime +
                ", severity='" + severity + '\'' +
                ", suppressed=" + suppressed +
                ", hostId='" + hostId + '\'' +
                ", hostName='" + hostName + '\'' +
                ", name='" + name + '\'' +
                ", duration='" + duration + '\'' +
                ", acknowledged='" + acknowledged + '\'' +
                '}';
    }

    private static final long serialVersionUID = 898678554843527682L;
}
